#pragma once

#include <fstream>
#include <vector>

namespace Enums
{
enum TestMenuChoices
{
	Create=1,
	Edit=2,
	Delete=3,
	Save=4,
	SaveExit=5,
	Exit
};
}
class Answer
{
public:
	int id;
	char* AnswerText;
};

class Question
{
	std::vector <Answer> Answers;
	public:
	int Id;
	char* QuestionText;	
	Answer RigthAnswer;
};


class Test
{
	void Save(char* filePath);
public:
	Test(void);
	~Test(void);
	void Save();
	void CreateQuestion();
	bool EditQuestion(int id);
	bool DeleteQuestion(int id);
	std::vector<Question> Questions;
	char* Name;
	static Test* Create();
	static void Take(Test);
	
};







